<!--登录模块-->
<div id="login">
	{if $this->_username}
	<div style="float:right; margin-right:20px;">
	{L('hellow')} {get_nickname()}, 
	<a href="{APP_PATH}index.php?m=member&siteid={$siteid}" target="_blank">{L('member_center')}</a> 
	<a href="{APP_PATH}index.php?m=member&c=index&a=logout&forward={urlencode($_GET['forward'])}&siteid={$siteid}" target="_top">{L('logout')}</a>
	</div>
	{else}
	<form method="post" action="index.php?m=member&c=index&a=login" id="myform" name="myform">
		<span>
			<input type="submit" class="login" value="" name="dosubmit" id="dosubmit" />
			<a href="index.php?m=member&c=index&a=register&siteid={$siteid}" title="{L('register')}">
				<input type="button" class="reg" value="" onclick="location.href='index.php?m=member&c=index&a=register&siteid={$siteid}'" >
			</a>
		</span>
		<label>{L('username')}:<input type="text" class="uname" id="username" name="username" /></label>
		<label>{L('password')}：<input type="password" class="upwd" id="password" name="password" /></label>
		<label>{L('checkcode')}：<input type="text" class="code" id="code" name="code">
			{form::checkcode('code_img', '4', '14', 80, 24)}</label>
	</form>
	{/if}
</div>
<!--网站Logo-->
<div id="logobar">
	<div class="logo">
		<a href="{siteurl($siteid)}/" title="{$SEO['site_title']}">
		<img alt="{$SEO['site_title']}" title="{$SEO['site_title']}" src="{IMG_PATH}2zwx/logo.png" />
		</a>
	</div><!-- css class logo end -->
	<div class="ad">
    <a href="http://www.yy.com/go.html#89119192" title="在线答疑" style="float:right;" target="_blank">
	<img alt="{$SEO['site_title']}" title="在线答疑" src="{IMG_PATH}2zwx/dy.png" />
</a>
<script language="javascript" src="{APP_PATH}caches/poster_js/16.js"></script>
		</div><!-- css class ad end -->
</div><!-- css id logobar end --><div id="menubar">
	<div class="menu">
		{pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
		<a href="{siteurl($siteid)}" title="首页" onmouseover="show_sub_cat(0)">首页</a>
		{loop $data $r}
		<a href="{$r[url]}" {if $top_parentid==$r[catid]}class="{if $r[catid]==9}tea{elseif $r[catid]==11}par{elseif $r[catid]==13}stu{else}focus{/if}"{/if}title="{$r[catname]}" onmouseover="show_sub_cat({$r[catid]})">{$r[catname]}</a>
		{/loop}
		{/pc}
	</div><!-- css class menu end -->
	<div class="second_menu">
		<span id="sub_cat_arr">
		{if $top_parentid}
		{pc:content action="category" catid="$top_parentid" num="15" siteid="$siteid" order="listorder ASC"}
			{loop $data $r}
			<a href="{$r[url]}" title="{$r[catname]}">{$r[catname]}</a>
			{/loop}
		{/pc}
		{if $modelid}<a href="{APP_PATH}index.php?m=content&c=search&catid={$catid}">搜索</a>{/if}
		{/if}
		</span>
	</div><!-- css class second_menu end -->
</div><!-- css id menubar end -->